function delayed(prompt,html,time){
    prompt.text(html)
    setTimeout(() => {
      prompt.html("");
    }, time)
}
function btn_disabled(btn_sel,after,before){
    let btn = $(btn_sel)
    btn.addClass("disabled")
    let count = 60
    btn.text(after+"("+ count +"秒)")
    let timer = setInterval(() => {
        count--
        btn.text(after+"("+ count +"秒)")
        if(count === 0){
            btn.text(before)
            clearInterval(timer)
            btn.removeClass("disabled")
        }
    },1000)
}
